package com.xiong.wuliao.util;

import android.support.v4.app.Fragment;

import com.xiong.wuliao.minefragment.LikeGoodFragment;
import com.xiong.wuliao.minefragment.LikeStoryFragment;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/11/9.
 */
public class FragmentMineUtil {
    static List<Fragment> fragments = new ArrayList<>();
    private static final LikeGoodFragment likeGoodFragment;
    private static final LikeStoryFragment likeStoryFragment;

    static {
        likeGoodFragment = new LikeGoodFragment();
        likeStoryFragment = new LikeStoryFragment();

        fragments.add(likeGoodFragment);
        fragments.add(likeStoryFragment);
    }

    public static List<Fragment> getFragments(){
        return fragments;
    }

    public static int getFragmentSize(){
        return fragments.size();
    }
}
